var fruits = ['Apple','Cherry','Grape','Banana'];
document.write(fruits.indexOf("Grape"));